home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr11
/
cuj9303.zip
/
1103042B
< prev
next >
Wrap
Text File
|
1993-06-21
|
1KB
|
36 lines
/****************************************************/
/* */
/* SSX_CONF.H - configuration info needed for */
/* SSX (stack swap executive) */
/* */
/* By Tom Green and Dennis Cronin */
/* 10/19/92 */
/* */
/****************************************************/
/* main config params */
/* maximum number of tasks */
#define MAX_TASKS 24
/* 1 tick per slice */
#define TIME_SLICE 1
/* number of bytes of context info */
#define CNTXT_SZ 8
/*
* enable interrupts - this will have to be ported
* in other environments
*/
#define enable_ints enable
/* variable type to keep interrupt status in */
typedef
int int_state_var;
/* save off current state, disable all interrupts */
#define ints_off(isv) isv=disable_ints()
/* explicitly enable interrupts */
#define ints_on() enable_ints()
/* reload previous interrupt enables */
#define restore_ints(isv) { if(isv) enable(); }